//package com.sm.rag;
//
//import jakarta.annotation.Resource;
//import org.springframework.ai.document.Document;
//import org.springframework.ai.embedding.EmbeddingModel;
//import org.springframework.context.annotation.Configuration;
//
//import java.util.List;
//
//@Configuration
//public class SmAppVectorStoreConfig {
//    @Resource
//    private SmAppDocumentLoader smAppDocumentLoader;
//    public QdrantVectorStore smAppVectorStore(QdrantClient qdrantClient, EmbeddingModel embeddingModel) {
//        QdrantVectorStore qdrantVectorStore = QdrantVectorStore.builder(qdrantClient, embeddingModel).build();
//        //加载文档
//        List<Document> documents = smAppDocumentLoader.loadMarkdowns();
//        //将文档转换为向量并存储
//        qdrantVectorStore.add(documents);
//        return qdrantVectorStore;
//    }
//}
